<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$username?>的菜谱_<?=$this->config->item('site_name');?></title>
	<meta name="keywords" content="<?=$this->config->item('site_keywords');?>" />
	<meta name="description" content="<?=$this->config->item('site_description');?>" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/usercenter.css')?>" rel="stylesheet" type="text/css" media="screen">

	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/jquery-ui.min.js')?>"></script>
	<script src="<?=path_res('static/js/tempo.min.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
	<script src="<?=path_res('static/js/jquery.autocomplete-min.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>

<? $this->load->view('auth/user_menu'); ?>
<div class="user_main clearfix">
	<div class="user_inner_tab">
		<ul class="user_inner_tab_ul">
			<li><a href="#" class="current link">全部菜谱</a></li>
			<li><a href="#" class="link">我的菜谱</a></li>
		</ul>
		<a target="_blank" href="<?=site_url('user/create/caipu')?>" class="user_inner_tab_btn" id="creatnewcd">+ 发布菜谱</a>
	</div>
	<?php if($user_caipu):?>
	<div class="listtyle_cd1 clearfix">
		<div class="user_cditem clearfix">
			<div class="l">
				<div class="time"><span><?=date('Y年m月')?></span><strong><?=date('d')?></strong></div>
			</div>
			<div class="zp_r">
			<?php $zpi == 0;?>
			<?php foreach( $user_caipu as $caipu) :?>
			<?php $zpi++;?>
				<div class="userzp_zp userzp_zp_370 <?php if($zpi%3 == 0){echo 'mr0';}?>">
					<div class="imgw">
						<a target="_blank" href="<?=site_url('recipe/'.$caipu['id'])?>" class="img"><img src="<?=$caipu['coverImage']?>"></a>
						<!--span class="delthis" style="display: inline;"><a href="#" class="edit">编辑</a> | <a href="javascript:void(0);" onclick="delete_recipe(45801)" class="delete">删除</a></span>
						<span class="confuse">等待审核</span-->
					</div>
					<a class="name" target="_blank" href="<?=site_url('recipe/'.$caipu['id'])?>"><?=$caipu['title']?></a>
					<p class="p1"><?=$caipu['tips']?>...</p>
				</div>
			<?php endforeach;?>
			</div>
		</div>
	</div>
	<?php else:?>
	<div class="nocontenttt">暂无数据</div>
	<?php endif;?>
</div>
<div class="pager">
	<?= $this->pagination->create_links();?>
</div>
<? $this->load->view('footer'); ?>